#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
@Project ：图灵学习 
@File    ：面向对象概念.py
@IDE     ：PyCharm 
@Author  ：ChenLiGao
@Date    ：2024-10-11 16:42
'''
str_list = ['a', 'b', 'c']

int_list = [1, 2, 3]

for a, b in zip(str_list, int_list):
    print(a, b)

""" 使用面向对象的方式完成需求 """


class Student:
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def print_info(self):
        print(f"姓名：{self.name}，年龄：{self.age}")


anna = Student('安娜', 19)
shuangshuang = Student('双双', 15)

anna.print_info()
shuangshuang.print_info()